﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraEditors;

namespace Cafe.Presentation
{
    public partial class EditCatalogueForm : DevExpress.XtraEditors.XtraForm
    {
        public Boolean isEdit = false;
        public String CatalogueName
        {
            get
            {
                return txtCatalogueName.Text;
            }
            set
            {
                txtCatalogueName.Text = value;
            }
        }
        public String Description
        {
            get
            {
                return txtDescription.Text;
            }
            set
            {
                txtDescription.Text = value;
            }
        }
        public EditCatalogueForm()
        {
            InitializeComponent();
        }

        private void simpleButton1_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.OK;
        }

        private void EditCatalogueForm_Load(object sender, EventArgs e)
        {
            if (isEdit) this.Text = "Cập nhật Catalogue";
        }
    }
}